$("#submission").click(function () {
    var list = $(".triagePerformance");
    var dataList = [];
    for(var i=0;i<list.length;i++){
        var obj = list[i];
        var deal ={};
        var isOrthodontic = $(obj).find(".isOrthodontic").val();
        var orthodonticNumber = $(obj).find(".orthodonticNumber").val();
        if(isOrthodontic=="1" && (orthodonticNumber==null || orthodonticNumber=="")){
            alert("请填写正畸编号！")
            return;
        }else{
            deal.dealId = $(obj).find(".dealId").val();
            deal.doctor = $(obj).find(".doctor").val();
            deal.nurse = $(obj).find(".nurse").val();
            deal.orthodonticNumber = $(obj).find(".orthodonticNumber").val();
            dataList.push(deal);
        }
    }
    $.ajax({
        url: Feng.ctxPath + "/consultant/update_doctorOrNurse",
        dataType: "json",
        contentType: "application/json",
        data: JSON.stringify(dataList),   //数组
        type: "POST",
        success: function (data) {
            alert('录入成功!');
            window.parent.location.reload();
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    });
});